package org.jeecg.modules.monitoring.j_monitoring.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.monitoring.j_monitoring.entity.MMachineRoom;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 机房
 * @Author: xiaoyq
 * @Date:   2023-02-22
 * @Version: V1.0
 */
public interface MMachineRoomMapper extends BaseMapper<MMachineRoom> {
    /**
     * 机房分页查询
     * @param pagelist
     * @param queryWrapper
     * @return
     */
    Page<MMachineRoom> getPageList(Page<MMachineRoom> pagelist, @Param("ew") QueryWrapper queryWrapper);

    /**
     * 所有机房列表
     * @return
     */
    List<MMachineRoom> selectAll();

    /**
     * 批量更新机房名称
     * @param roomName
     * @param roomId
     * @return
     */
    void updateMachineRoomName(@Param("roomName") String roomName,@Param("roomId") String roomId);
}
